https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /proc/self/root/lib/python3/dist-packages/cloudinit/sources/azure/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/lib/python3/dist-packages/cloudinit/sources/azure/__pycache__/kvp.cpython-310.pyc
o

쑛hu�@s�ddlZddlmZmZddlmZddlmZddlmZm	Z	ddl
mZe�e
�Zdeejfdd	�Zd
edefdd�Zd
eedefdd�ZdS)�N)�datetime�timezone)�Optional)�version)�handlers�instantiated_handler_registry)�errors�returncCs tj�d�}t|tj�sdS|S)z'Get instantiated KVP telemetry handler.�	telemetryN)r�registered_items�get�
isinstancer�HyperVKvpReportingHandler)�kvp_handler�r�=/usr/lib/python3/dist-packages/cloudinit/sources/azure/kvp.py�get_kvp_handlers�r�reportcCs,t�}|durt�d�dS|�d|�dS)z/Report to host via PROVISIONING_REPORT KVP key.Nz.KVP handler not enabled, skipping host report.F�PROVISIONING_REPORTT)r�LOG�debug�	write_key)rrrrr�report_via_kvps
r�vm_idcCs<t�ddt����dt�tj�����d|��g�}t	|�S)Nzresult=successzagent=Cloud-Init/z
timestamp=zvm_id=)
r�
encode_reportr�version_stringr�nowr�utc�	isoformatr)rrrrr�report_success_to_host&s��	r)�loggingrr�typingr�	cloudinitr�cloudinit.reportingrr�cloudinit.sources.azurer�	getLogger�__name__rrr�str�boolrrrrrr�<module>s


https://t.me/RX1948 - 2025